package com.baomibing.flow.json;

import com.baomibing.flow.constant.NodeTypeEnum;
import com.google.common.collect.Maps;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Map;

/**
 * JTransition
 *
 * @author frog 2023/10/24 08:59
 * @version 1.0.0
 **/
@Data @Accessors(chain = true) @EqualsAndHashCode(callSuper = true)
public class JTransition extends JBase{

    private String source;

    private String target;

    private String expression;

    private String sourceHandle;

    private String targetHandle;

    private Map<String, String> params = Maps.newHashMap();

    private Boolean beChild = Boolean.FALSE;

    public JTransition() {
        this.nodeType = NodeTypeEnum.Transit;
    }

}
